package org.sensation.server.operation.request.analys;

import java.io.InputStream;
import java.io.ObjectInputStream;

import org.sensation.server.operation.request.Command;
import org.sensation.server.operation.request.OperationRequest;

public class OperationRequestRMIAnalyst implements OperationRequestAnalys{
	public OperationRequest analysis(InputStream in, String hostName)
			throws Exception {
		ObjectInputStream ois = new ObjectInputStream(in);
		Command operation = (Command) ois.readObject();
		return new OperationRequest(operation);
	}
}
